<!--填报课程考核实施计划-->
<template>
  <div class="assessment-container">
  
    <div class="plan-entry-table-container">
        <admintablelistac :dataList="dataList" v-show="dataList" :isOperation="true" :url="url" :colDataList="colDataList" :config="config">
        </admintablelistac>
     </div>
   
  </div>
</template>
 
<script>
import admintablelistac from "@/views/comonents/admintablelistac";
import {queryPostList} from "../../../api/classHoursAddList/ClassTimeQuery";
export default {
  components: {
    admintablelistac
  },
  data() {
    return {
      xq:"",
      url:'/teacher/classHours/addHours',
      colDataList: [{
        label: '系',
        prop: 'df',
        align: 'center',
        width: '88'
      }, {
        label: '教研室',
        prop: 'department',
        align: 'center',
        width: '121'
      }, {
        label: '教员',
        prop: 'teacherName',
        align: 'center',
        width: '61'
      },{
        label: '总课时量',
        prop: 'totalClassTime',
        align: 'center',
        width: '76'
      }, {
        label: '职称',
        prop: 'rank',
        align: 'center',
        width: '76'
      }, {
        label: '承担任务',
        prop: 'task',
        align: 'center',
        width: '61'
      }, {
        label: '课程名称',
        prop: 'courseName',
        align: 'center',
        width: '81'
      },{
        label: '教学班名称',
        prop: 'className',
        align: 'center',
        width: '81'
      },  {
        label: '课时量',
        prop: 'conuthour',
        align: 'center',
        width: '133'
      }],
      config: {
        mergeTarget: 'checkStatus', // 通用依据
        combineProp: [
          'df',
          'department',
        
          'teacherName',
          'totalClassTime'
        ]
      },
      dataList: [{
       checkStatus:"123", 
       department:"教研室2", 
       clall:"李教员", 
       actualClass:"95", 
       actualCoefficient:"老师", 
       amountTime:"主讲", 
       standardClass:"课程",
       roomClass:"教学班",
       commonts:"45",
        },{
       checkStatus:"123", 
       department:"教研室2", 
       clall:"李教员", 
       actualClass:"95", 
       actualCoefficient:"老师1", 
       amountTime:"主讲1", 
       standardClass:"课程1",
       roomClass:"教学班2",
       commonts:"456",
        },
        
      ],
    
    }

  },
   methods: {
   queryPostList: function () {
     console.log(this.$route.query.xq)
      let obj = {
        semester:this.$route.query.xq,
        
      }
      return new Promise(() => {
        queryPostList(obj).then(res => {
          this.dataList = res.data.data;
          console.log("e")
          console.log(res.data.data)
          console.log("f")
        })
      })
    },
  },
  mounted() {
    this.queryPostList();
  },
};
</script>
<style lang="less" scoped>
.plan-entry-table-container {
  margin-top: 30px;
  .el-table td,
  .el-table th.is-leaf,
  .el-table--border,
  .el-table--group {
    border-color: #c7d7eb;
  }
  .el-table__header tr,
  .el-table__header th {
    padding: 0;
    height: 82px;
    background-color: #edf2f9;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    line-height: 20px;
    color: #004ca7;
  }

  .el-table__body tr,
  .el-table__body td {
    padding: 0;
    height: 86px;
  }
  .el-table th.el-table__cell > .cell {
    padding: 0;
  }
  .el-table .cell,
  .el-table--border .el-table__cell:first-child .cell {
    padding: 0;
  }
  .el-table__body td .cell {
    padding: 0;
  }

  .add-button {
    margin: 0 auto;
    cursor: pointer;
    background: #fff6ef;
    border: 1px solid #f3b815;
    width: 65px;
    height: 28px;
    line-height: 28px;
    border-radius: 6px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    > span {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #f3b815;
    }
    > img {
      width: 13px;
      height: 13px;
      margin-right: 8px;
    }
  }
  .pass-text {
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #51aef6;
  }
  .wait-text {
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #ff3819;
  }
  .watch-button {
    width: 76px;
    height: 36px;
    background: #fef1e8;
    border: 1px solid #f86900;
    border-radius: 6px;
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #f86900;
    line-height: 16px;
    margin: 2px auto;
  }
}
</style>

<style lang="less" scoped>
.assessment-container {
  width: 1875px;
  margin: 0 auto;
  .search-container {
    margin-top: 27px;
    padding-left: 43px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    .search-container-left,
    .search-container-right {
      display: flex;
      flex-direction: row;
    }
    .search-container-item {
      color: #004ca7;
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      margin-right: 30px;
      > span {
        margin-right: 6px;
      }
    }
    .search-button {
      width: 77px;
      height: 28px;
      line-height: 28px;
      background: #f1f8fe;
      border: 1px solid #51aef6;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      > span {
        font-size: 16px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #51aef6;
      }
      > img {
        width: 20px;
        height: 20px;
        margin-right: 4px;
      }
    }
    .search-buttona {
      width: 107px;
      height: 28px;
      line-height: 28px;
      background: #f1f8fe;
      border: 1px solid #51aef6;
      border-radius: 6px;
      margin-left: 10px;
      cursor: pointer;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      > span {
        font-size: 16px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #51aef6;
      }
      > img {
        width: 20px;
        height: 20px;
        margin-right: 4px;
      }
    }
  }
  .bottom-block {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    .text {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      line-height: 39px;
      color: #004ca7;
    }
  }
  .plan-entry-table-container {
    margin-top: 30px;
    .table-data {
      width: 100%;
      border: 0.8px solid #004ca7;
      border-radius: 9px;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #004ca7;
    }
  }
}
</style>
